package com.atguigu.apitest.beans;

import java.io.Serializable;

/**
 * 传感器消息记录
 *
 * @author Administrator
 * @version 1.0
 * @date 2021-06-23 11:34
 */
public class SensorReading implements Serializable {
    /**
     * 传感器 id
     */
    private String sensorId;
    /**
     *  时间戳
     */
    private Long timeStamp;
    /**
     * 温度
     */
    private Double temperature;

    public SensorReading() { }

    public SensorReading(String sensorId, Long timeStamp, Double temperature) {
        this.sensorId = sensorId;
        this.timeStamp = timeStamp;
        this.temperature = temperature;
    }

    public String getSensorId() {
        return sensorId;
    }

    public void setSensorId(String sensorId) {
        this.sensorId = sensorId;
    }

    public Long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(Long timeStamp) {
        this.timeStamp = timeStamp;
    }

    public Double getTemperature() {
        return temperature;
    }

    public void setTemperature(Double temperature) {
        this.temperature = temperature;
    }

    @Override
    public String toString() {
        return "SensorReading{" +
                "sensorId='" + sensorId + '\'' +
                ", timeStamp=" + timeStamp +
                ", temperature=" + temperature +
                '}';
    }
}
